package com.hzhq.contract.demo;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * @Author: hzhq1255
 * @Mail: hzhq1255@163.com
 * @Date: 2021/4/28 22:41
 * @Desc:
 */
public class Test {
    private String test1;

    public static void main(String[] args) {
        List<String> testList = new ArrayList<>();
        testList.add("test1");
        testList.add("test2");
        String[] testArray = testList.toArray(new String[0]);
        for (int i = 0 ; i < testList.size(); i++){
            System.out.println(i+" "+testArray[i]);
        }
    }
}
